package com.immunology.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="COMPLAINT_TYPE")
public class ComplaintType implements Serializable{

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue
	@Column(name="COMPLAINT_TYPE_ID")
	private Long id;
	
	@Column(name="NAME", length = 50)
	private String name;
	
	private double multyplier;
	
	@ManyToOne
	@JoinColumn(name="SYNDROME_ID")
	private Syndrome syndrome;
	
	@OneToMany(mappedBy="complaintType")
	private Collection<Complaint> complaints = new ArrayList<Complaint>();
	
	public Collection<Complaint> getComplaints() {
		return complaints;
	}

	public void setComplaints(Collection<Complaint> complaints) {
		this.complaints = complaints;
	}

	public Syndrome getSyndrome() {
		return syndrome;
	}

	public void setSyndrome(Syndrome syndrome) {
		this.syndrome = syndrome;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getMultyplier() {
		return multyplier;
	}

	public void setMultyplier(double multyplier) {
		this.multyplier = multyplier;
	}


	
}
